package com.sc.sysconfig.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 角色
 *
 * @author 徐赫阳
 * @date 2021/09/02
 */
@Data
public class SysRole extends SysBase implements Serializable{
    /**
     * 串行版本uid
     */
    private static final long serialVersionUID = 413254524123611621L;

    @ApiModelProperty(value="角色编码")
    private String code;

    @ApiModelProperty(value="角色名称")
    private String name;

    @ApiModelProperty(value="角色描述")
    private String roleDesc;

    @TableLogic(value = "0",delval = "1")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="删除标识 -- 自动填充 0正常 1删除")
    private Integer isDel;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="启用状态 字典表COMMON_STATUS_DICT")
    private Integer status;

    @TableField(exist = false)
    @ApiModelProperty(value="角色权限")
    private List<Integer> permission;


}
